require('babel-core/register')({
    presets: ['env', 'stage-0']
});
require('babel-polyfill');
require('module-alias/register');

const Koa = require('koa')
const app = new Koa()
const router = require('./router/index.js')
const middleware = require('./middleware')

middleware(app)
router(app)
app.listen(3004, () => {
  console.log('server is running at http://localhost:3004')
})